package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.ProductType;

public interface ProductTypeDAO {
	
    public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;

	public List<ProductType> findProductTypeList(String proCode,String pro_name, String pro_line_name, String pageIndex,
			String pageSize) throws Exception ;
	
	public long findProductTypeListCount(String proCode,String pro_name, String pro_line_name) throws Exception;
	
	public void deleteProductType(String productTypeId) throws Exception;

	public List<Object[]> findProductTypeSelect()  throws Exception;

	public List<Object[]> findProductTypeLineSelect(String proCode) throws Exception;
}
